// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import App from './App';
import router from './router';
import VueReSource from 'vue-resource';
import Mint from 'mint-ui';
import Vant from 'vant';
import 'vant/lib/vant-css/index.css';
import store from './store/index';
Vue.config.productionTip = false;

Vue.use(VueReSource);
Vue.use(Mint);
Vue.use(Vant);
Window.store = store;
/* eslint-disable no-new */
const Store = {
  install (Vue, options) {
    Vue.prototype.$store = store;
  }
};

Vue.use(Store);
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
});
